package com.pets.springboot_petshop.service.impl;

import com.pets.springboot_petshop.entity.Refund;
import com.pets.springboot_petshop.mapper.RefundMapper;
import com.pets.springboot_petshop.service.RefundService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * @Author: wxk
 * @Email: 2089967794@qq.com
 * @Date: 2024/10/15 下午3:52 周二
 * @Description: 退款实现类
 */
@Service
public class RefundServiceImpl implements RefundService {
    @Autowired
    private RefundMapper refundMapper;

    @Override
    public Refund select(int id) {
        return refundMapper.select(id);
    }

    @Override
    public List<Refund> selectuser_id(int user_id) {
        return refundMapper.selectuser_id(user_id);
    }

    @Override
    public List<Refund> findAll() {
        return refundMapper.findAll();
    }

    @Override
    public int add(Refund refund) {
        return refundMapper.add(refund);
    }

    @Override
    public int delete(int id) {
        return refundMapper.delete(id);
    }

    @Override
    public int update(Refund refund) {
        return refundMapper.update(refund);
    }
}
